import QtQuick 2.2
import "./mainmenu"
Rectangle{

    signal itemclick(string title, string picpath)
    signal tailItem(string content, string picpath)
    color: qsTr("white")
    border.color: qsTr("lightgreen"); border.width: 2

    Grid{
        columns: 2
        columnSpacing: 5; rowSpacing:2
        MainmenuItem{id: hotedit; content: qsTr("HotEdit"); imagepath: qsTr("../../images/hotedit.png");
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("备份与恢复"); imagepath: qsTr("../../images/backup.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("输入输出"); imagepath: qsTr("../../images/inout.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("校准"); imagepath: qsTr("../../images/correct.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("手动操作"); imagepath: qsTr("../../images/hand.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("控制面板"); imagepath: qsTr("../../images/control.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("自动生产窗口"); imagepath: qsTr("../../images/autoproduce.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("事件日志"); imagepath: qsTr("../../images/log.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("程序编辑器"); imagepath: qsTr("../../images/programing.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text, picpath)

                //tailItem(text, picpath)
            }
            //            onMessage: {
            //                console.log(qsTr("发送“点击”消息给middle\n\t\t------Mainmenu"))
            //                parent.tailItem(content, picpath)
            //            }
        }
        MainmenuItem{content: qsTr("FlexPendant资源管理器"); imagepath: qsTr("../../images/resmanage.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("程序数据"); imagepath: qsTr("../../images/programdate.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }
        MainmenuItem{content: qsTr("系统信息"); imagepath: qsTr("../../images/sysinfo.png")
            onSelectItem: {
                console.log(qsTr("发送“点击”消息给 middle\n\t\t------Mainmenu"))
                itemclick(text,picpath)
            }
        }

        anchors{
            top: parent.top; topMargin: 20
            left: parent.left; leftMargin: 20
        }

    }


}
